package com.vstudy.zx.dao;

import com.vstudy.zx.entity.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentDao {
    @Select("select * from tb_student where stu_id=#{stu_id}")
    Student selectById(Long stu_id);

    @Select("select * from tb_student where stu_name like concat('%',#{key},'%') " +
            "or stu_login_name like concat('%',#{key},'%')")
    List<Student> selectByKeyName(String key);

//    Student select();
}
